﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="PersonGroupCatalogViewDataSet" targetNamespace="http://tempuri.org/PersonGroupCatalogViewDataSet.xsd" xmlns:mstns="http://tempuri.org/PersonGroupCatalogViewDataSet.xsd" xmlns="http://tempuri.org/PersonGroupCatalogViewDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="templateConnectionString3" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="templateConnectionString3 (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Big3.Hitbase.DataBaseEngine.Properties.Settings.GlobalReference.Default.templateConnectionString3" Provider="Microsoft.SqlServerCe.Client.3.5" />
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="jus2009ConnectionString1" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="jus2009ConnectionString1 (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Big3.Hitbase.DataBaseEngine.Properties.Settings.GlobalReference.Default.jus2009ConnectionString1" Provider="Microsoft.SqlServerCe.Client.3.5" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PersonGroupTableAdapter" GeneratorDataComponentClassName="PersonGroupTableAdapter" Name="PersonGroup" UserDataComponentName="PersonGroupTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="jus2009ConnectionString1 (Settings)" DbObjectName="PersonGroup" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        PersonGroup.PersonGroupID, PersonGroup.Name, PersonGroup.SaveAs, PersonGroup.Type, PersonGroup.Sex, PersonGroup.URL, PersonGroup.Country, 
                         PersonGroup.BirthDay, PersonGroup.DayOfDeath, PersonGroup.ImageFilename, COUNT(*) AS NumberOfTracks
FROM            PersonGroup INNER JOIN
                         Track ON PersonGroup.PersonGroupID = Track.ArtistID
GROUP BY PersonGroup.PersonGroupID, PersonGroup.Name, PersonGroup.SaveAs, PersonGroup.Type, PersonGroup.Sex, PersonGroup.URL, PersonGroup.Country, 
                         PersonGroup.BirthDay, PersonGroup.DayOfDeath, PersonGroup.ImageFilename
ORDER BY PersonGroup.SaveAs</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="PersonGroupID" DataSetColumn="PersonGroupID" />
              <Mapping SourceColumn="Name" DataSetColumn="Name" />
              <Mapping SourceColumn="SaveAs" DataSetColumn="SaveAs" />
              <Mapping SourceColumn="Type" DataSetColumn="Type" />
              <Mapping SourceColumn="Sex" DataSetColumn="Sex" />
              <Mapping SourceColumn="URL" DataSetColumn="URL" />
              <Mapping SourceColumn="Country" DataSetColumn="Country" />
              <Mapping SourceColumn="BirthDay" DataSetColumn="BirthDay" />
              <Mapping SourceColumn="DayOfDeath" DataSetColumn="DayOfDeath" />
              <Mapping SourceColumn="ImageFilename" DataSetColumn="ImageFilename" />
              <Mapping SourceColumn="NumberOfTracks" DataSetColumn="NumberOfTracks" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="jus2009ConnectionString1 (Settings)" DbObjectName="PersonGroup" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillById" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataById" GeneratorSourceName="FillById" GetMethodModifier="Public" GetMethodName="GetDataById" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataById" UserSourceName="FillById">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        PersonGroup.PersonGroupID, PersonGroup.Name, PersonGroup.SaveAs, PersonGroup.Type, PersonGroup.Sex, PersonGroup.URL, PersonGroup.Country, 
                         PersonGroup.BirthDay, PersonGroup.DayOfDeath, PersonGroup.ImageFilename, COUNT(*) AS NumberOfTracks
FROM            PersonGroup INNER JOIN
                         Track ON PersonGroup.PersonGroupID = Track.ArtistID
GROUP BY PersonGroup.PersonGroupID, PersonGroup.Name, PersonGroup.SaveAs, PersonGroup.Type, PersonGroup.Sex, PersonGroup.URL, PersonGroup.Country, 
                         PersonGroup.BirthDay, PersonGroup.DayOfDeath, PersonGroup.ImageFilename
HAVING        (PersonGroup.PersonGroupID = @Param1)
ORDER BY PersonGroup.SaveAs</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="Param1" ColumnName="PersonGroupID" DataSourceName="PersonGroup" DataTypeServer="int(4)" DbType="Int32" Direction="Input" ParameterName="@Param1" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="PersonGroupID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="PersonGroupCatalogViewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="PersonGroupCatalogViewDataSet" msprop:Generator_UserDSName="PersonGroupCatalogViewDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="PersonGroup" msprop:Generator_TableClassName="PersonGroupDataTable" msprop:Generator_TableVarName="tablePersonGroup" msprop:Generator_TablePropName="PersonGroup" msprop:Generator_RowDeletingName="PersonGroupRowDeleting" msprop:Generator_UserTableName="PersonGroup" msprop:Generator_RowChangingName="PersonGroupRowChanging" msprop:Generator_RowEvHandlerName="PersonGroupRowChangeEventHandler" msprop:Generator_RowDeletedName="PersonGroupRowDeleted" msprop:Generator_RowEvArgName="PersonGroupRowChangeEvent" msprop:Generator_RowChangedName="PersonGroupRowChanged" msprop:Generator_RowClassName="PersonGroupRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="PersonGroupID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnPersonGroupID" msprop:Generator_ColumnPropNameInRow="PersonGroupID" msprop:Generator_ColumnPropNameInTable="PersonGroupIDColumn" msprop:Generator_UserColumnName="PersonGroupID" type="xs:int" />
              <xs:element name="Name" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="SaveAs" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="SaveAs" msprop:Generator_ColumnVarNameInTable="columnSaveAs" msprop:Generator_ColumnPropNameInTable="SaveAsColumn" msprop:Generator_UserColumnName="SaveAs" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Type" msprop:Generator_ColumnVarNameInTable="columnType" msprop:Generator_ColumnPropNameInRow="Type" msprop:Generator_ColumnPropNameInTable="TypeColumn" msprop:Generator_UserColumnName="Type" type="xs:int" minOccurs="0" />
              <xs:element name="Sex" msprop:Generator_ColumnVarNameInTable="columnSex" msprop:Generator_ColumnPropNameInRow="Sex" msprop:Generator_ColumnPropNameInTable="SexColumn" msprop:Generator_UserColumnName="Sex" type="xs:int" minOccurs="0" />
              <xs:element name="URL" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="URL" msprop:Generator_ColumnVarNameInTable="columnURL" msprop:Generator_ColumnPropNameInTable="URLColumn" msprop:Generator_UserColumnName="URL" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Country" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="Country" msprop:Generator_ColumnVarNameInTable="columnCountry" msprop:Generator_ColumnPropNameInTable="CountryColumn" msprop:Generator_UserColumnName="Country" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="BirthDay" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="BirthDay" msprop:Generator_ColumnVarNameInTable="columnBirthDay" msprop:Generator_ColumnPropNameInTable="BirthDayColumn" msprop:Generator_UserColumnName="BirthDay" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="8" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="DayOfDeath" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="DayOfDeath" msprop:Generator_ColumnVarNameInTable="columnDayOfDeath" msprop:Generator_ColumnPropNameInTable="DayOfDeathColumn" msprop:Generator_UserColumnName="DayOfDeath" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="8" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ImageFilename" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="ImageFilename" msprop:Generator_ColumnVarNameInTable="columnImageFilename" msprop:Generator_ColumnPropNameInTable="ImageFilenameColumn" msprop:Generator_UserColumnName="ImageFilename" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NumberOfTracks" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnNumberOfTracks" msprop:Generator_ColumnPropNameInRow="NumberOfTracks" msprop:Generator_ColumnPropNameInTable="NumberOfTracksColumn" msprop:Generator_UserColumnName="NumberOfTracks" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:PersonGroup" />
      <xs:field xpath="mstns:PersonGroupID" />
    </xs:unique>
    <xs:unique name="Constraint2">
      <xs:selector xpath=".//mstns:PersonGroup" />
      <xs:field xpath="mstns:Name" />
    </xs:unique>
  </xs:element>
</xs:schema>